package com.itestor.iptv.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author Mr.li
 * 
 */
public class LocalCmdConstant {
    
   /**
    * 服务已经启动
    */
   public static int SC_STATE_RUNING=4;
   
   /**
    * 服务停止
    */
   public static int SC_STATE_STOPTED=1;
   
   /**
    * 服务正在启动
    */
   public static int SC_STATE_START_PENDING=2;
   
   /**
    * 服务正在停止
    */
   public static int SC_STATE_STOP_PENDING=3;
   /**
    * 服务不存在
    */
   public static int SC_SERVICE_NOTEXISTED=-1;
   
   /**
    * 控制服务失败
    */
   public static int SC_SERVICE_CONTROL_FAILED=-2;
   
   /**
    * 返回执行状态 
    */
   public static Map<Integer, String> STATE_MAP=new HashMap<Integer, String>();
   
   static {
       STATE_MAP.put(SC_STATE_RUNING, "sc.state.runing");
       STATE_MAP.put(SC_STATE_STOPTED, "sc.state.stoped");
       STATE_MAP.put(SC_STATE_START_PENDING, "sc.state.start.pending");
       STATE_MAP.put(SC_STATE_STOP_PENDING, "sc.state.stop.pending");
       STATE_MAP.put(SC_SERVICE_NOTEXISTED, "sc.service.notexisted");
       STATE_MAP.put(SC_SERVICE_CONTROL_FAILED, "sc.service.control.failed");       
   }
   
   
}
